/*
 * @Author: Rick 312712100@qq.com
 * @Date: 2022-05-23 00:23:02
 * @LastEditors: Rick 312712100@qq.com
 * @LastEditTime: 2022-05-23 00:23:03
 * @FilePath: \cloud-music\server.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
var express = require('express')
var compression = require('compression')


// var port = process.env.PORT || config.build.port
var port = 8011

var app = express()

app.use(compression())

app.use(express.static('./build'))

module.exports = app.listen(port, function (err) {
    if (err) {
        console.log(err)
        return
    }
    console.log('Listening at http://localhost:' + port + '\n')
})